import request from "@/utils/request";


// export function login(parameter) {
//   return request({
//     url: `app/customer/third/login`,
//     method: "post",
//     data: parameter
//   });
// }

/**
 * 获取图片验证码
 * @param {*} data
 * @returns
 */
export function loginImg(data) {
  return request({
    url: `app/sys/userlogin/getImageWordCaptcha`,
    method: 'post',
    data
  })
}



export function login(data) {
  return request({
    url: `app/sys/userlogin/loginByNamePassword`,
    method: 'post',
    data
  })
}